blur: Simplify return_if_fail()
authorBenjamin Otte <otte@redhat.com>
Tue, 3 Feb 2015 07:06:39 +0000 (08:06 +0100)
committerBenjamin Otte <otte@redhat.com>
Thu, 5 Feb 2015 17:57:29 +0000 (18:57 +0100)
gtk/gtkcairoblur.c

index 29bc1681466c706af40a3ef2858eafc45e367923..406e09b9146436dace15e5c01b1f2c16e94d1985 100644 (file)
@@ -194,14 +194,11 @@ void
 _gtk_cairo_blur_surface (cairo_surface_t* surface,
                          double           radius_d)
 {
-  cairo_format_t format;
   int radius = radius_d;
 
   g_return_if_fail (surface != NULL);
   g_return_if_fail (cairo_surface_get_type (surface) == CAIRO_SURFACE_TYPE_IMAGE);
-
-  format = cairo_image_surface_get_format (surface);
-  g_return_if_fail (format == CAIRO_FORMAT_A8);
+  g_return_if_fail (cairo_image_surface_get_format (surface) == CAIRO_FORMAT_A8);
 
   if (radius == 0)
     return;